package com.czy.a;

/**
 * @author chenzy
 * @since 2024/5/20
 **/
public abstract class MyThread {
    private final Thread thread;

    protected MyThread(String name) {
        thread=Thread.ofVirtual().name(name,1).start(this::run);
    }

    public abstract void run();
}
